package com.carleasoft.mps.cms.business.train.service.Impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.carleasoft.mps.cms.business.train.bean.entity.TrainConsumeItem;
import com.carleasoft.mps.cms.business.train.bean.po.TrainConsumeItemPageQueryPo;
import com.carleasoft.mps.cms.business.train.bean.vo.TrainConsumeItemVo;
import com.carleasoft.mps.cms.business.train.dao.TrainConsumeItemMapper;
import com.carleasoft.mps.cms.business.train.service.TrainConsumeItemService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 消耗合计 服务实现类
 * </p>
 *
 * @author fan
 * @since 2023-05-17
 */
@Service
public class TrainConsumeItemServiceImpl extends ServiceImpl<TrainConsumeItemMapper, TrainConsumeItem> implements TrainConsumeItemService {

    @Override
    public Page<TrainConsumeItemVo> consumeMaintainPageQuery(Page page, TrainConsumeItemPageQueryPo trainConsume) {
        return this.baseMapper.consumeMaintainPageQuery(page,trainConsume);
    }

    @Override
    public boolean consumeMaintainBatchEdit(List<TrainConsumeItem> trainConsumeItemList) {
        return this.baseMapper.consumeMaintainBatchEdit(trainConsumeItemList);
    }

    @Override
    public boolean consumeMaintainBatchEditByName(List<TrainConsumeItem> trainConsumeItemList) {
        return this.baseMapper.consumeMaintainBatchEditByName(trainConsumeItemList);
    }
}
